package com.rrjjg.app.admin.data.storage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rrjjg.app.mybatis.bean.ConditionalType;
import com.rrjjg.app.mybatis.bean.MyBatisConditional;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 平台
 * </p>
 *
 * @author vayne
 * @since 2023-04-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("PROJECT")
@ApiModel(value = "Project对象", description = "平台")
public class Project implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @MyBatisConditional(type = ConditionalType.LIKE_RIGHT)
    @ApiModelProperty("服务名称")
    @TableField("name")
    private String name;

    @MyBatisConditional(type = ConditionalType.LIKE_RIGHT)
    @ApiModelProperty("服务编码")
    @TableField("core")
    private String core;

    @ApiModelProperty("平台id")
    @TableField("platform_id")
    private Long platformId;
}
